package cn.juque.jdfsystem.threads;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ThreadPoolFactory</li>
 * </ul>
 * @date 2023-12-13 16:32:35
 **/
@Component("jdfThreadPoolFactory")
public class JdfThreadPoolFactory {

    @Resource
    private FileViewsThreadPool fileViewsThreadPool;

    @Resource
    private SyncCandyThreadPool syncCandyThreadPool;

    @Resource
    private RegisterLoadThreadPool registerLoadThreadPool;

    public void init() {
        this.fileViewsThreadPool.init();
        this.syncCandyThreadPool.init();
        this.registerLoadThreadPool.init();
    }
}
